package com.test.ayi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.test.ayi.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
 
/**
 * 用户Mapper
 * @author hxstrive.com
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据用户名查询用户信息
     * @param username 用户名
     * @return 返回用户信息
     */
    @Select({"select * from users where username = #{username}"})
    User selectUserByUserName(@Param("username") String username);

}